package com.cn.kehong.domain;

import com.cn.kehong.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class LineTask {
    private String id;

    private String lineType;

    private String factoryName;

    private String workPeriod;

    private String workProcess;

    private String productCode;

    private String banCi;

    private String taskName;

    private String frequency;

    private String remark;

    private String jobUserName;

    private String jobTime;

    private String pinKongUser;

    private String pinKongTime;

    private String banZhang;

    private String banZhangTime;

    private String lineStatus;

    private String attr1;

    private String attr2;

    private String attr3;

    private String attr4;

    private String attr5;

    private String attr6;

    private String attr7;

    private String attr8;

    private String attr9;

    private String attr10;

    private String attr11;

    private String attr12;

    private String attr13;
    private String pkAttr13;
    private String pkAttr14;
    private String pkAttr15;

    private String status;

    private String pcStatus;

    private Date createTime;

    private Date updateTime;

    private Integer count;

    private String photoId;
    private List<String> fileInfos;
    private String[] fileUrls;
    private List<FileInfo> fileInfoList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }
    public static final transient Map<String, String> RESULTSTATUSMAP =
            ImmutableMap.of("0", "待处理", "1", "待确认","2","已完成");

    public String getLineStatusCn() {
        return RESULTSTATUSMAP.get(getLineStatus());
    }
    public String getLineType() {
        return lineType;
    }

    public void setLineType(String lineType) {
        this.lineType = lineType == null ? null : lineType.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getWorkPeriod() {
        return workPeriod;
    }

    public void setWorkPeriod(String workPeriod) {
        this.workPeriod = workPeriod == null ? null : workPeriod.trim();
    }

    public String getWorkProcess() {
        return workProcess;
    }

    public void setWorkProcess(String workProcess) {
        this.workProcess = workProcess == null ? null : workProcess.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getBanCi() {
        return banCi;
    }

    public void setBanCi(String banCi) {
        this.banCi = banCi == null ? null : banCi.trim();
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName == null ? null : taskName.trim();
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency == null ? null : frequency.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getJobUserName() {
        return jobUserName;
    }

    public void setJobUserName(String jobUserName) {
        this.jobUserName = jobUserName == null ? null : jobUserName.trim();
    }

    public String getJobTime() {
        return jobTime;
    }

    public void setJobTime(String jobTime) {
        this.jobTime = jobTime == null ? null : jobTime.trim();
    }

    public String getPinKongUser() {
        return pinKongUser;
    }

    public void setPinKongUser(String pinKongUser) {
        this.pinKongUser = pinKongUser == null ? null : pinKongUser.trim();
    }

    public String getPinKongTime() {
        return pinKongTime;
    }

    public void setPinKongTime(String pinKongTime) {
        this.pinKongTime = pinKongTime == null ? null : pinKongTime.trim();
    }

    public String getBanZhang() {
        return banZhang;
    }

    public void setBanZhang(String banZhang) {
        this.banZhang = banZhang == null ? null : banZhang.trim();
    }

    public String getBanZhangTime() {
        return banZhangTime;
    }

    public void setBanZhangTime(String banZhangTime) {
        this.banZhangTime = banZhangTime == null ? null : banZhangTime.trim();
    }

    public String getLineStatus() {
        return lineStatus;
    }

    public void setLineStatus(String lineStatus) {
        this.lineStatus = lineStatus == null ? null : lineStatus.trim();
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1 == null ? null : attr1.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3 == null ? null : attr3.trim();
    }

    public String getAttr4() {
        return attr4;
    }

    public void setAttr4(String attr4) {
        this.attr4 = attr4 == null ? null : attr4.trim();
    }

    public String getAttr5() {
        return attr5;
    }

    public void setAttr5(String attr5) {
        this.attr5 = attr5 == null ? null : attr5.trim();
    }

    public String getAttr6() {
        return attr6;
    }

    public void setAttr6(String attr6) {
        this.attr6 = attr6 == null ? null : attr6.trim();
    }

    public String getAttr7() {
        return attr7;
    }

    public void setAttr7(String attr7) {
        this.attr7 = attr7 == null ? null : attr7.trim();
    }

    public String getAttr8() {
        return attr8;
    }

    public void setAttr8(String attr8) {
        this.attr8 = attr8 == null ? null : attr8.trim();
    }

    public String getAttr9() {
        return attr9;
    }

    public void setAttr9(String attr9) {
        this.attr9 = attr9 == null ? null : attr9.trim();
    }

    public String getAttr10() {
        return attr10;
    }

    public void setAttr10(String attr10) {
        this.attr10 = attr10 == null ? null : attr10.trim();
    }

    public String getAttr11() {
        return attr11;
    }

    public void setAttr11(String attr11) {
        this.attr11 = attr11 == null ? null : attr11.trim();
    }

    public String getAttr12() {
        return attr12;
    }

    public void setAttr12(String attr12) {
        this.attr12 = attr12 == null ? null : attr12.trim();
    }

    public String getAttr13() {
        return attr13;
    }

    public void setAttr13(String attr13) {
        this.attr13 = attr13;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }

    public String getPcStatus() {
        return pcStatus;
    }

    public void setPcStatus(String pcStatus) {
        this.pcStatus = pcStatus;
    }

    public String getPhotoId() {
        return photoId;
    }

    public void setPhotoId(String photoId) {
        this.photoId = photoId;
    }

    public List<String> getFileInfos() {
        return fileInfos;
    }

    public void setFileInfos(List<String> fileInfos) {
        this.fileInfos = fileInfos;
    }

    public String getPkAttr13() {
        return pkAttr13;
    }

    public void setPkAttr13(String pkAttr13) {
        this.pkAttr13 = pkAttr13;
    }

    public String getPkAttr14() {
        return pkAttr14;
    }

    public void setPkAttr14(String pkAttr14) {
        this.pkAttr14 = pkAttr14;
    }

    public String getPkAttr15() {
        return pkAttr15;
    }

    public void setPkAttr15(String pkAttr15) {
        this.pkAttr15 = pkAttr15;
    }

    public List<FileInfo> getFileInfoList() {
        return fileInfoList;
    }

    public void setFileInfoList(List<FileInfo> fileInfoList) {
        this.fileInfoList = fileInfoList;
    }

    public String[] getFileUrls() {
        return fileUrls;
    }

    public void setFileUrls(String[] fileUrls) {
        this.fileUrls = fileUrls;
    }
}